package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author chenjijiang
 * @description
 */
@Data
@Entity
@Table(name = "CONTENT_FEE")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ContentFee implements Serializable {
	private static final long serialVersionUID = -1220950510942307546L;
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CONTENT_FEE_SEQ")
	@SequenceGenerator(name = "CONTENT_FEE_SEQ", allocationSize = 1, sequenceName = "CONTENT_FEE_SEQ")
	@Column(name = "ID")
	private Long id;

	@Column(name = "TYPE")
	private Integer type;//1:产品包，2:节目

	@Column(name = "POMS_ID")
	private Long pomsId;//type=1:产品包id，type=2：节目id

	@Column(name = "SALE_PRODUCT_ID")
	private String saleProductId; // 促销产品Id

	@Column(name = "SALE_CATEGORY")
	private Integer saleCategory; //促销类型    1.预售  2.预订   3.限免   4.渠道打折

	@Column(name = "START_TIME")
	private String startTime; // 开始时间

	@Column(name = "END_TIME")
	private String endTime; //结束时间

	@Column(name = "DISCOUNT")
	private String discount; //折扣

	@Column(name = "PRICE")
	private String price;   //价格

	@Column(name = "ORDER_FLAG")
	private String orderFlag;// 0：包月  1：按次    7：免费

	@Column(name = "CHANNEL_PACKAGE_ID")
	private Long channelPackageId; //渠道包ID

	@Column(name = "SALE_SELLING_PRICE_NUM")
	private String saleSellingPriceNum; //促销售价金额;

	@Column(name = "CLIENT_TYPE")
	private Integer clientType;    //客户端类型 (与字段channelPackageId互斥)， 0-和视频，1-悦听， 2-和视频免费版， 3-和视界， 4-直播客户端， 5-UGC客户度, 6-咪咕影院

	@Column(name = "EQUITY_ID")
	private String equityId; //权益id

	@Column(name = "PRICE_TYPE")
	private String priceType;//1：售价名称
}
